<?php
class Answer_Component_Controller_Point extends Phpfox_Component {
    public function process() {
        $aLevels = Phpfox::getService('answer.level')->getAllInfo();

        $this->template()
            ->setBreadcrumb(Phpfox::getPhrase('answer.answers'), $this->url()->makeUrl('answer'), false)
            ->setBreadcrumb(Phpfox::getPhrase('answer.about_points_levels_and_groups'), "", true)
            ->setHeader(array(
            'answer.css' => 'module_answer'
        ))
            ->assign(array(
                'sAskAQuestion' => Phpfox::getParam('answer.ask_a_question')." ".Phpfox::getPhrase('answer.points'),
                'sAnswerAQuestion' => Phpfox::getParam('answer.answer_question')." ".Phpfox::getPhrase('answer.points'),
                'sVoteAQuestion' => Phpfox::getParam('answer.vote_answer')." ".Phpfox::getPhrase('answer.points'),
                'sCorrectAnswer' => Phpfox::getParam('answer.answer_correct')." ".Phpfox::getPhrase('answer.points'),
                'aLevels' => $aLevels,
                'iCount' => count($aLevels)
            )
        );
    }
}